package com.xieli.invitesdk.utils
/**
 * @Auther sr
 * @Date 2023/9
 * @Description 设置点击间隔
 */
object ClickHandler {
    private var lastClickTime: Long = 0
    private const val MAX_TIME: Long = 600

    fun isValidClick(): Boolean {
        val time = System.currentTimeMillis()
        if (time - lastClickTime < MAX_TIME) {
            return false
        }
        lastClickTime = time
        return true
    }
}